import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-expect-error 必须注释掉
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
//引入全局样式
import '@/styles/index.scss'
import 'virtual:svg-icons-register'
//引入自定义的插件对象：注册全局组件
import gloalComponent from '@/components'
import router from './router'
import pinia from './store'
//引入路由鉴权
import '@/permisstion.ts'

const app = createApp(App)

app.use(ElementPlus, {
  locale: zhCn,
})
app.use(router)
// 安装自定义插件
app.use(gloalComponent)
app.use(pinia)
app.mount('#app')

///服务器域名：http://sph-api.atguigu.cn
//swagger文档： http://139.198.104.58:8212/swagger-ui.html#/
